@import "../../assets/css/theme.less";
.user {
  padding: 5px;
  -webkit-app-region: no-drag;
  user-select: none;
  display: flex;
  border-radius: 4px;
  margin-bottom: 5px;
  position: relative;
  cursor: pointer;
  .headpic {
    flex-basis: 30px;
    flex-shrink: 0;
    height: 30px;
    border-radius: 50%;
    .badge {
      sup{
        transform: scale(0.7) translateX(100%);
        top:-5px;
      }
    }
    img {
      width: 30px;
      height: 30px;
      border-radius: 50%;
    }
  }
  .name {
    width: calc(100% - 30px);
    float: left;
    line-height: 30px;
    padding-left: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .close {
    width: 16px;
    height: 16px;
    position: absolute;
    top: 1px;
    right: 1px;
    background: rgba(0,0,0,0.5);
    color:#fff;text-align: center;line-height: 16px;font-size: 14px;
    border-radius: 50%;
    transition: all 0.3s;
    display: none;
    &:hover{
      background:red;
    }
  }
  &:hover {
    background: #d3d3d3;
    .close{
      display: block;
    }
  }
  &.active {
    background: @theme_color;
    color: #fff;
  }
  &::after {
    content: "";
    display: block;
    clear: both;
  }
}